<!DOCTYPE html>
<html lang="en">
<head>

    <script>
        if(!localStorage.forgetTel){
            location = "forget.html";
        }
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,shrink-to-fit=no">
    <title>随手记忘记密码</title>
    <link rel="shortcut icon"
          href="https://static.app.yinxiang.com/embedded-web/registration/favicon.ico"/>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/reg.css">

</head>
<body>
<div class="regdiv">
    <div class="reglogo"></div>
    <h3 class="center">忘记密码？</h3>
    <div class="reginput">
        <h3 class="center">验证码已经发送至您的手机上</h3>
        <div class="input yzminput clearfix"><input class="fl" id="yzm" placeholder="请输入验证码"/>
            <div class="getyzm fl" id="getyzmbtn">获取验证码</div>
        </div>
        <div class="error error3" id="error3"></div>
        <div>
            <div class="regbtn btn" id="resetbtn2">重置密码</div>
        </div>
        <div style="text-align: center;font-size:14px" id="tip"></div>

    </div>
</div>


<script src="https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/js/lib/jquery-1-cc52697ab1.10.2.js"></script>
<script src="js/base.js"></script>

<script>
    //false 表示不是真发短信
sendMsg(localStorage.forgetTel,false);

resetbtn2.onclick = function(){
    ajax("/bijiyzm/find2",{tel:localStorage.forgetTel,yzm:yzm.value},function(data){
       if(data){
           localStorage.yzmRight = true;
           location = "forget3.html";
       }else{
           localStorage.yzmRight = false;
           tip.innerHTML = "验证码有误！";
       }
    });
};
</script>
</body>
</html>
